import com.xja.food.service.TypeService;
import com.xja.food.service.UserService;
import com.xja.food.service.impl.FoodStarter;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author 刘振升
 * @version 1.0
 * @date 2022/4/14 19:45
 * @description todo
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = FoodStarter.class)
public class UsersText {
        @Autowired
    private UserService userService;
    @Autowired
    private TypeService typeService;
    @Test
    public void testlogin() {
        System.out.println("aaaaaaaaaaa");
        System.out.println("userService:"+userService);
    }
    @Test
    public void type(){
        typeService.typeList().forEach(System.out::println);
    }
}
